gtk4.git
11 years agodocs: Remove non-existent symbols from gtk3-sections.txt
Philip Withnall [Wed, 18 Feb 2015 10:55:58 +0000 (10:55 +0000)]
docs: Remove non-existent symbols from gtk3-sections.txt

Eliminate a couple of gtk-doc warnings.

11 years agodocs: Ignore generated files when building documentation
Philip Withnall [Wed, 18 Feb 2015 10:55:34 +0000 (10:55 +0000)]
docs: Ignore generated files when building documentation

11 years agoAppChooserDialog: Fix memleak
Rico Tzschichholz [Wed, 18 Feb 2015 10:38:29 +0000 (11:38 +0100)]
AppChooserDialog: Fix memleak

11 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 18 Feb 2015 09:55:57 +0000 (10:55 +0100)]
Updated Spanish translation

11 years agoUpdated Italian translation
Milo Casagrande [Wed, 18 Feb 2015 08:14:48 +0000 (08:14 +0000)]
Updated Italian translation

11 years agowayland: Use display from GdkDragContext device
Carlos Garnacho [Tue, 17 Feb 2015 18:45:50 +0000 (19:45 +0100)]
wayland: Use display from GdkDragContext device

It will be useless to check the source window on the destination side,
it's at the moment always NULL. Fetch the display from the device instead,
which will be set for every GdkDragContext.

11 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 17 Feb 2015 17:36:57 +0000 (18:36 +0100)]
Updated Spanish translation

11 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 17 Feb 2015 17:36:41 +0000 (18:36 +0100)]
Updated Spanish translation

11 years agoscrolledwindow: Ensure indicator windows are created at the right place
Carlos Garnacho [Tue, 17 Feb 2015 15:21:42 +0000 (16:21 +0100)]
scrolledwindow: Ensure indicator windows are created at the right place

At the time of creating the indicator window, the scrollbar allocation is
poked and reused as the initial window dimensions. This usually happens
on two circumstances, either initially (so a ::size-allocate is emitted,
relocating the windows in the right places), or post-initialization when
calling set_overlay_scrolling() (so the scrollbars already have a valid
size allocation)

However, if the scrolledwindow is unrealized, and later re-realized again,
the scrollbars will already have a valid allocation, although 0,0 based
due to being contained in the previous indicator window. This comes out
wrong then, and the indicator window is given 0,0 based coordinates too.

Fix this by refactoring the scrollbar allocation code out of size_allocate,
and also use that given size at the time of creating the indicator windows,
this will provide the right widget-relative allocation anytime.

11 years agoscrolledwindow: Fully reset indicators' state on unrealize
Carlos Garnacho [Tue, 17 Feb 2015 15:15:26 +0000 (16:15 +0100)]
scrolledwindow: Fully reset indicators' state on unrealize

This avoids timers to run after realize(), and inconsistent initial states
if the scrolledwindow is just realized again.

11 years agoAvoid a crash in the inspector under wayland
Matthias Clasen [Tue, 17 Feb 2015 14:30:56 +0000 (09:30 -0500)]
Avoid a crash in the inspector under wayland

The Wayland-specific popover code in GtkWindow was not doing the
right thing with the separate display connection we use for the
inspector.

11 years agoDo not use "return" when chaining up to a void function
Paolo Borelli [Tue, 17 Feb 2015 13:17:53 +0000 (14:17 +0100)]
Do not use "return" when chaining up to a void function

11 years agoUpdated Italian translation
Milo Casagrande [Tue, 17 Feb 2015 13:43:52 +0000 (13:43 +0000)]
Updated Italian translation

11 years agoglarea: Better error handling
Emmanuele Bassi [Tue, 17 Feb 2015 10:21:41 +0000 (10:21 +0000)]
glarea: Better error handling

Currently, GtkGLArea will leak GError instances set during the context
creation, if an error is set.

If any error is set post-context creation, it should be displayed even
in the case a GL context exists; for instance, we can use the error
display facility for shader compilation errors.

11 years agoswitch: Have a priv varibale in the constructor
Benjamin Otte [Mon, 16 Feb 2015 15:58:17 +0000 (16:58 +0100)]
switch: Have a priv varibale in the constructor

11 years agoswitch: Change handle_x to handle_pos
Benjamin Otte [Mon, 16 Feb 2015 05:25:44 +0000 (06:25 +0100)]
switch: Change handle_x to handle_pos

Make that variable go from 0.0 to 1.0 where 0.0 means inactive (slider
is on the left) and 1.0 means active (slider is on the right).

The math is simpler that way and most importantly the value is
independent of size.

11 years agoswitch: Get rid of offset member variable
Benjamin Otte [Mon, 16 Feb 2015 04:22:00 +0000 (05:22 +0100)]
switch: Get rid of offset member variable

We can compute it on-demand whereever we need it.

11 years agoswitch: Remove unused variables from private struct
Benjamin Otte [Mon, 16 Feb 2015 02:24:38 +0000 (03:24 +0100)]
switch: Remove unused variables from private struct

11 years agocss: Implement animations for font-weight property
Benjamin Otte [Sun, 15 Feb 2015 04:37:19 +0000 (05:37 +0100)]
css: Implement animations for font-weight property

11 years agocss: Implement "bolder" and "lighter" font weights
Benjamin Otte [Sun, 15 Feb 2015 04:02:33 +0000 (05:02 +0100)]
css: Implement "bolder" and "lighter" font weights

11 years agoUpdated Hebrew Property translation
Yosef Or Boczko [Mon, 16 Feb 2015 20:22:57 +0000 (22:22 +0200)]
Updated Hebrew Property translation

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Mon, 16 Feb 2015 20:21:51 +0000 (22:21 +0200)]
Updated Hebrew translation

11 years agoupdate Punjabi Translation
A S Alam [Mon, 16 Feb 2015 20:15:28 +0000 (14:15 -0600)]
update Punjabi Translation

11 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 16 Feb 2015 19:54:10 +0000 (20:54 +0100)]
Updated Slovenian translation

11 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 16 Feb 2015 19:41:39 +0000 (20:41 +0100)]
Updated Slovenian translation

11 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Mon, 16 Feb 2015 17:33:56 +0000 (18:33 +0100)]
Updated Norwegian bokmål translation.

11 years agoFix a misleading condition
Matthias Clasen [Mon, 16 Feb 2015 03:00:49 +0000 (22:00 -0500)]
Fix a misleading condition

gcc5 rightfully complains about this condition being unclear.

11 years agoImprove two strings
Matthias Clasen [Mon, 16 Feb 2015 00:55:54 +0000 (19:55 -0500)]
Improve two strings

Make two property blurbs better.

https://bugzilla.gnome.org/show_bug.cgi?id=744574

11 years agoUpdates
Matthias Clasen [Mon, 16 Feb 2015 00:49:37 +0000 (19:49 -0500)]
Updates

11 years agoUpdated grid-packing to GtkApplication.
Bastian Ilsø [Sat, 14 Feb 2015 20:24:20 +0000 (21:24 +0100)]
Updated grid-packing to GtkApplication.

11 years agoAdd style classes to the title buttons
Matthias Clasen [Sun, 15 Feb 2015 18:03:29 +0000 (13:03 -0500)]
Add style classes to the title buttons

This will let themes treat close/min/max buttons differently,
if they so desire.

https://bugzilla.gnome.org/show_bug.cgi?id=744400

11 years agoUpdated Hungarian translation
Balázs Úr [Sun, 15 Feb 2015 12:36:26 +0000 (12:36 +0000)]
Updated Hungarian translation

11 years agoUpdated Hungarian translation
Balázs Úr [Sun, 15 Feb 2015 12:34:39 +0000 (12:34 +0000)]
Updated Hungarian translation

11 years agodocs: Fix "shadres" → "shaders" typo
Emmanuele Bassi [Sun, 15 Feb 2015 11:23:30 +0000 (11:23 +0000)]
docs: Fix "shadres" → "shaders" typo

https://bugzilla.gnome.org/show_bug.cgi?id=744394

11 years agostack: check for widget before calling is_ancestor()
Christian Hergert [Sun, 15 Feb 2015 02:11:54 +0000 (18:11 -0800)]
stack: check for widget before calling is_ancestor()

We can hit this path during the destruction case, where widget has
been released.

This fixes a lot of superfluous error messages on console.

11 years agowayland: Update to xdg-shell unstable v5
Jonas Ådahl [Fri, 13 Feb 2015 06:17:49 +0000 (14:17 +0800)]
wayland: Update to xdg-shell unstable v5

Only trivial changes needed.

https://bugzilla.gnome.org/show_bug.cgi?id=744455

11 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 14 Feb 2015 19:58:40 +0000 (20:58 +0100)]
Updated Slovenian translation

11 years agoUpdated Turkish translation
Muhammet Kara [Sat, 14 Feb 2015 17:08:13 +0000 (17:08 +0000)]
Updated Turkish translation

11 years agoGtkSearchEngine: Add debug spew
Matthias Clasen [Sat, 14 Feb 2015 05:57:29 +0000 (00:57 -0500)]
GtkSearchEngine: Add debug spew

This lets us find out which search engine implementation is
in use.

11 years agofile chooser: Allow to limit search
Matthias Clasen [Sat, 14 Feb 2015 05:48:26 +0000 (00:48 -0500)]
file chooser: Allow to limit search

Add a button to allow restricting search to the current
folder (and subdirectories). This makes the search more
useful, and makes the file chooser more similar to
nautilus.

11 years agofile chooser: Add a location column for search
Matthias Clasen [Sat, 14 Feb 2015 04:50:06 +0000 (23:50 -0500)]
file chooser: Add a location column for search

In search, we show files from differnt locations, and it makes
sense to show where they come from. This makes the file chooser
more similar to nautilus, too.

11 years agofile chooser: Don't open folders unexpectedly
Matthias Clasen [Sat, 14 Feb 2015 01:43:06 +0000 (20:43 -0500)]
file chooser: Don't open folders unexpectedly

Folders that show up among search results were unexpectedly
returned even for GTK_FILE_CHOOSER_ACTION_OPEN. Change things
around so that we switch to the folder instead, which is the
behavior we had in GTK+ 2.x.

https://bugzilla.gnome.org/show_bug.cgi?id=744204

11 years agogtkwindow: Don't set the background if the window is app-paintable
Jasper St. Pierre [Sat, 14 Feb 2015 02:21:42 +0000 (18:21 -0800)]
gtkwindow: Don't set the background if the window is app-paintable

This fixes transparent DND windows.

11 years agowayland: Do not require latest wl_seat
Pier Luigi Fiorini [Wed, 11 Feb 2015 06:46:00 +0000 (06:46 +0000)]
wayland: Do not require latest wl_seat

Some compositors might not offer wl_seat 4 resulting in GTK+ clients not
working on that compositor.

wl_seat 4 introduces keyboard repeat information, but when that information
is missing it is retrieved from settings, hence there's no reason to
require wl_seat 4.

This patch was tested against QtCompositor (5.5, dev branch)
and Weston 1.6.1.

Reviewed-by: Daniel Stone <daniels@collabora.com>
https://bugzilla.gnome.org/show_bug.cgi?id=744172

11 years agoRename GtkSidebar to GtkStackSidebar
Lars Uebernickel [Thu, 12 Feb 2015 17:09:13 +0000 (18:09 +0100)]
Rename GtkSidebar to GtkStackSidebar

GtkSidebar is too generic and doesn't fully convey what the widget does.

https://bugzilla.gnome.org/show_bug.cgi?id=744094

11 years agocsd: Always raise on primary titlebar click
Matthias Clasen [Fri, 13 Feb 2015 13:50:04 +0000 (08:50 -0500)]
csd: Always raise on primary titlebar click

This matches more closely what typical window managers do.
Pointed out in
https://bugzilla.redhat.com/show_bug.cgi?id=1158472

11 years agoForgotten file
Matthias Clasen [Fri, 13 Feb 2015 13:49:23 +0000 (08:49 -0500)]
Forgotten file

11 years agoBump version
Matthias Clasen [Thu, 12 Feb 2015 23:23:44 +0000 (18:23 -0500)]
Bump version

So apps can require 3.15.7 for new api.

11 years agogdkglcontext-win32.c: Fix Build on C89 Compilers
Chun-wei Fan [Fri, 13 Feb 2015 10:36:34 +0000 (18:36 +0800)]
gdkglcontext-win32.c: Fix Build on C89 Compilers

Make sure variables are declared at the top of the block.

11 years agonotebook: Add api to complete tab dnd from the outside
Matthias Clasen [Thu, 12 Feb 2015 22:33:10 +0000 (17:33 -0500)]
notebook: Add api to complete tab dnd from the outside

This is necessary to avoid unwanted drag cancel animations,
now that GtkNotebook is careful about cancelling a drag
when the dragged tab disappears unexpectedly.

11 years agoUpdated POTFILES.in
Piotr Drąg [Thu, 12 Feb 2015 17:53:03 +0000 (18:53 +0100)]
Updated POTFILES.in

11 years agoRemove GdkGLProfile
Emmanuele Bassi [Thu, 12 Feb 2015 17:30:42 +0000 (17:30 +0000)]
Remove GdkGLProfile

The existence of OpenGL implementations that do not provide the full
core profile compatibility because of reasons beyond the technical, like
llvmpipe not implementing floating point buffers, makes the existence of
GdkGLProfile and documenting the fact that we use core profiles a bit
harder.

Since we do not have any existing profile except the default, we can
remove the GdkGLProfile and its related API from GDK and GTK+, and sweep
the whole thing under the carpet, while we wait for an extension that
lets us ask for the most compatible profile possible.

https://bugzilla.gnome.org/show_bug.cgi?id=744407

11 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 12 Feb 2015 17:40:56 +0000 (18:40 +0100)]
Updated Spanish translation

11 years agogl: Add gdk_gl_context_get_version()
Emmanuele Bassi [Thu, 12 Feb 2015 14:28:22 +0000 (14:28 +0000)]
gl: Add gdk_gl_context_get_version()

Store the OpenGL version when we first do the extensions check; this
allows client code to check the available GL version without requiring a
call to gdk_gl_context_make_current() and epoxy_gl_version().

11 years agodocs: Specify the minimum version of GL provided by the core profile
Emmanuele Bassi [Thu, 12 Feb 2015 13:32:02 +0000 (13:32 +0000)]
docs: Specify the minimum version of GL provided by the core profile

When using GDK_GL_PROFILE_3_2_CORE, we are not only specifying that the
GDK should create a core profile; we are also specifying that the
minimum required version of OpenGL is set to 3.2.

We should also specify that the GDK_GL_PROFILE_DEFAULT profile is an
alias for GDK_GL_PROFILE_3_2_CORE.

11 years agoglarea: Add accessors for the required GL version
Emmanuele Bassi [Thu, 12 Feb 2015 13:20:24 +0000 (13:20 +0000)]
glarea: Add accessors for the required GL version

Specifying the version of OpenGL is enough of a common operation that it
should not require overriding the creation of the GdkGLContext.

11 years agoglarea: Update documentation
Emmanuele Bassi [Thu, 12 Feb 2015 13:19:21 +0000 (13:19 +0000)]
glarea: Update documentation

Drop the fixed pipeline example code.

https://bugzilla.gnome.org/show_bug.cgi?id=744394

11 years agoglarea: Clean up the header
Emmanuele Bassi [Thu, 12 Feb 2015 12:42:08 +0000 (12:42 +0000)]
glarea: Clean up the header

11 years agodocs: Add missing GdkGLContext symbols
Emmanuele Bassi [Thu, 12 Feb 2015 12:40:03 +0000 (12:40 +0000)]
docs: Add missing GdkGLContext symbols

11 years agogl: Drop profile for gdk_window_create_gl_context()
Emmanuele Bassi [Thu, 12 Feb 2015 12:34:28 +0000 (12:34 +0000)]
gl: Drop profile for gdk_window_create_gl_context()

Now that we have a two-stages GL context creation sequence, we can move
the profile to a pre-realize option, like the debug and forward
compatibility bits, or the GL version to use.

11 years agogtk: x: fix compilation without x11 backend
Lionel Landwerlin [Sat, 7 Feb 2015 20:05:18 +0000 (20:05 +0000)]
gtk: x: fix compilation without x11 backend

https://bugzilla.gnome.org/show_bug.cgi?id=744148

11 years agomain: Make gtk_get_option_group() available to bindings
Bastien Nocera [Thu, 22 Jan 2015 14:13:10 +0000 (15:13 +0100)]
main: Make gtk_get_option_group() available to bindings

Now that GOptionGroup is registered as a boxed type [1], don't skip it
in gobject-introspection.

[1]: See https://bugzilla.gnome.org/show_bug.cgi?id=743349

https://bugzilla.gnome.org/show_bug.cgi?id=743350

11 years agogtklistbox: add bind_model()
Lars Uebernickel [Mon, 9 Feb 2015 10:49:31 +0000 (11:49 +0100)]
gtklistbox: add bind_model()

gtk_list_box_bind_model() binds a GListModel to a GtkListBox.

This is a first step towards having GListModel support in Gtk. It's not
useful for large models, because GtkListBox always creates all widgets
for all rows.

11 years agoGtkListBoxRow: Update the listbox's cursor row when focusing
Timm Bäder [Tue, 10 Feb 2015 19:02:08 +0000 (20:02 +0100)]
GtkListBoxRow: Update the listbox's cursor row when focusing

https://bugzilla.gnome.org/show_bug.cgi?id=708320

11 years agofile chooser: Allow opening folders in the file manager
Matthias Clasen [Thu, 12 Feb 2015 04:34:04 +0000 (23:34 -0500)]
file chooser: Allow opening folders in the file manager

This has been suggested in
https://bugzilla.gnome.org/show_bug.cgi?id=325150#c2

11 years agowayland: Implement minimize support
Armin K [Tue, 10 Feb 2015 23:06:38 +0000 (00:06 +0100)]
wayland: Implement minimize support

Use the existing xdg_surface API for minimization.

https://bugzilla.gnome.org/show_bug.cgi?id=695945

11 years agomir, gl: Ensure we use the 3.2 core profile
Marco Trevisan (Treviño) [Thu, 12 Feb 2015 02:34:05 +0000 (03:34 +0100)]
mir, gl: Ensure we use the 3.2 core profile

Emit an error if the profile is different.

11 years agomir: Switch GDK_GL_PROFILE_DEFAULT to mean 3_2_CORE
Marco Trevisan (Treviño) [Thu, 12 Feb 2015 02:32:11 +0000 (03:32 +0100)]
mir: Switch GDK_GL_PROFILE_DEFAULT to mean 3_2_CORE

Instead of LEGACY.

11 years agomir, GL: Split GL context creation in two phases
Marco Trevisan (Treviño) [Thu, 12 Feb 2015 02:03:18 +0000 (03:03 +0100)]
mir, GL: Split GL context creation in two phases

Move egl_context initialization in gdk_gl_context_realize

 • gdk_window_create_gl_context() creates a GdkGLContext
 • gdk_gl_context_realize() creates the underlying resources

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agoconfigure.ac: bump mirclient dependency to 0.11
Marco Trevisan (Treviño) [Thu, 12 Feb 2015 01:20:24 +0000 (02:20 +0100)]
configure.ac: bump mirclient dependency to 0.11

11 years agoRevert "image: Optimize non-resize changes"
Matthias Clasen [Wed, 11 Feb 2015 17:01:36 +0000 (12:01 -0500)]
Revert "image: Optimize non-resize changes"

This reverts commit 6276b9cda0b179e6a29b9002f82a338dc6f9649f.

This change was causing problems in gnome-mines. Revert it
until we can figure out what exactly is going wrong there.
See https://bugzilla.redhat.com/show_bug.cgi?id=1190887

11 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Wed, 11 Feb 2015 15:46:00 +0000 (16:46 +0100)]
Updated Norwegian bokmål translation.

11 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Wed, 11 Feb 2015 15:37:34 +0000 (16:37 +0100)]
Updated Norwegian bokmål translation.

11 years agoBump glib requirement
Matthias Clasen [Wed, 11 Feb 2015 01:15:58 +0000 (20:15 -0500)]
Bump glib requirement

Needed for g_autoptr.

11 years agoBump version
Matthias Clasen [Tue, 10 Feb 2015 23:04:15 +0000 (18:04 -0500)]
Bump version

11 years agostylecontext: Don't use cache when unsaved
Benjamin Otte [Tue, 10 Feb 2015 22:49:15 +0000 (23:49 +0100)]
stylecontext: Don't use cache when unsaved

Fixes image-load-from-file reftest

11 years agoUpdates
Matthias Clasen [Tue, 10 Feb 2015 16:29:59 +0000 (11:29 -0500)]
Updates

11 years agoFix annotations
Matthias Clasen [Sun, 8 Feb 2015 20:02:07 +0000 (21:02 +0100)]
Fix annotations

The function gtk_label_set_attributes() is also used to
unset attributes, by passing %NULL. Reflect that in the
argument annotations.

11 years agogl: Fix the required version setter
Emmanuele Bassi [Tue, 10 Feb 2015 10:16:53 +0000 (10:16 +0000)]
gl: Fix the required version setter

We don't allow a version tuple to be lower than (3, 2), but we should
allow versions above that.

https://bugzilla.gnome.org/show_bug.cgi?id=744212

11 years agowin32/gl: Ensure we use the 3.2 core profile
Chun-wei Fan [Tue, 10 Feb 2015 08:20:37 +0000 (16:20 +0800)]
win32/gl: Ensure we use the 3.2 core profile

Emit an error if the profile is different.

This is a follow-up commit to commits cc45e82 (x11/gl: Ensure we use the
3.2 core profile) and 2d9081d (wayland/gl: Ensure we use the 3.2 core
profile), so that we do the same on GDK-Win32.  Update variable names and
comments so that the code is clearer to people, as we still need a
temporary legacy WGL context first before we can use
wglCreateContextAttribsARB() to create a WGL core (3.2+) context.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agogl: Put shaders in static storage
Emmanuele Bassi [Tue, 10 Feb 2015 03:33:02 +0000 (03:33 +0000)]
gl: Put shaders in static storage

We are not changing the shader code.

The compiler will hopefully put them in the .rodata section.

11 years agogdkgl should use shader version 1.50
Niels Nesse [Tue, 10 Feb 2015 09:11:24 +0000 (01:11 -0800)]
gdkgl should use shader version 1.50

Using version 1.20 with a forward compatible 3.2 core context is incorrect
since OpenGL 3.2 deprecates shader version 1.20 (See section E.2). The latest
fglrx drivers will not compile these shaders.

https://bugzilla.gnome.org/show_bug.cgi?id=744203

11 years agoUpdated Lithuanian translation
Aurimas Černius [Mon, 9 Feb 2015 20:59:13 +0000 (22:59 +0200)]
Updated Lithuanian translation

11 years agodemo: Change the resource path for the shaders
Emmanuele Bassi [Mon, 9 Feb 2015 19:32:38 +0000 (19:32 +0000)]
demo: Change the resource path for the shaders

We need to use the same name as the "plugin" so that the main UI will
display the resources inside a notebook tab.

11 years agogl: Drop GdkGLContextClass.upload_texture()
Emmanuele Bassi [Mon, 9 Feb 2015 19:09:31 +0000 (19:09 +0000)]
gl: Drop GdkGLContextClass.upload_texture()

It's unnecessary to allow per-backend overrides.

11 years agodemo: Move the GLSL shaders to resources
Emmanuele Bassi [Mon, 9 Feb 2015 16:27:44 +0000 (16:27 +0000)]
demo: Move the GLSL shaders to resources

It's easier to use them or modify them as separate files, instead of
inlined inside the C source.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agogl: Clean up the required version accessors
Emmanuele Bassi [Mon, 9 Feb 2015 16:10:22 +0000 (16:10 +0000)]
gl: Clean up the required version accessors

We can simplify the code, since we only have core GL profiles in GDK.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agodocs: We do not support non-core GL profiles
Emmanuele Bassi [Mon, 9 Feb 2015 16:09:25 +0000 (16:09 +0000)]
docs: We do not support non-core GL profiles

No need to mention that some API only works on core GL profiles in the
GdkGLContext docs.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agogl: Clean up pre-requisite checks for GdkGLContext setters
Emmanuele Bassi [Mon, 9 Feb 2015 16:08:43 +0000 (16:08 +0000)]
gl: Clean up pre-requisite checks for GdkGLContext setters

We don't support non-core profiles.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agowayland/gl: Ensure we use the 3.2 core profile
Emmanuele Bassi [Mon, 9 Feb 2015 15:56:18 +0000 (15:56 +0000)]
wayland/gl: Ensure we use the 3.2 core profile

Emit an error if the profile is different.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agox11/gl: Ensure we use the 3.2 core profile
Emmanuele Bassi [Mon, 9 Feb 2015 15:55:08 +0000 (15:55 +0000)]
x11/gl: Ensure we use the 3.2 core profile

Drop the dead code for the legacy profile, and return an error when
realizing if the profile is incorrect.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agodemos: Update the GtkGLArea demo code
Emmanuele Bassi [Thu, 5 Feb 2015 16:39:53 +0000 (16:39 +0000)]
demos: Update the GtkGLArea demo code

Same way we updated the testglarea test code.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agotests: Update testglarea
Emmanuele Bassi [Fri, 30 Jan 2015 17:20:44 +0000 (17:20 +0000)]
tests: Update testglarea

Since we dropped the legacy OpenGL compatibility profile, we need to use
recent OpenGL APi and concepts. This also means that the example code
gets a tad more complicated.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agogl: Add more debugging notes
Emmanuele Bassi [Thu, 5 Feb 2015 16:23:04 +0000 (16:23 +0000)]
gl: Add more debugging notes

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agoglarea: Do not use extension API
Emmanuele Bassi [Wed, 28 Jan 2015 19:07:33 +0000 (19:07 +0000)]
glarea: Do not use extension API

We are using GL contexts with Core GL profiles, so we need to use the
proper API, not the one provided by extensions.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agogl: Do not use the extension API for core GL
Emmanuele Bassi [Wed, 28 Jan 2015 19:06:37 +0000 (19:06 +0000)]
gl: Do not use the extension API for core GL

Since we are using a Core GL profile, we need to drop the
extension-based API.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agogl: Drop OpenGL legacy profile
Emmanuele Bassi [Wed, 28 Jan 2015 19:04:22 +0000 (19:04 +0000)]
gl: Drop OpenGL legacy profile

We simply don't want to care about legacy OpenGL.

All supported platforms also have support for OpenGL ≥ 3.2; it would
complicate the internal code; and would force us to use legacy GL
contexts internally if the first context created by the user is a legacy
GL context, and disable creation of core-3.2 contexts after that.

We will need to fix all our code examples to use the Core 3.2 profile.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agogl: Move getters for context options to the public API
Emmanuele Bassi [Wed, 28 Jan 2015 14:37:26 +0000 (14:37 +0000)]
gl: Move getters for context options to the public API

They can be useful for third party code as well.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agoSwitch GDK_GL_PROFILE_DEFAULT to mean 3_2_CORE
Emmanuele Bassi [Wed, 28 Jan 2015 12:31:36 +0000 (12:31 +0000)]
Switch GDK_GL_PROFILE_DEFAULT to mean 3_2_CORE

Instead of LEGACY.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

11 years agowin32/gl: Use the GdkGLContext options
Chun-wei Fan [Fri, 30 Jan 2015 06:32:26 +0000 (14:32 +0800)]
win32/gl: Use the GdkGLContext options

https://bugzilla.gnome.org/show_bug.cgi?id=741946